using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using DomainLayer.Data.Entities;

namespace Infrastructure.Data.Mapping
{
	public class AbnormWaybillLogMap : EntityTypeConfiguration<AbnormWaybillLog>
	{
		public AbnormWaybillLogMap()
		{
			// Primary Key
			this.HasKey(t => t.ID);

			// Properties
			this.Property(t => t.Content)
				.HasMaxLength(200);
				
			// Table & Column Mappings
			this.ToTable("AbnormWaybillLog");
			this.Property(t => t.ID).HasColumnName("ID");
			this.Property(t => t.WaybillNO).HasColumnName("WaybillNO");
			this.Property(t => t.CreateBy).HasColumnName("CreateBy");
			this.Property(t => t.CreateStation).HasColumnName("CreateStation");
			this.Property(t => t.CreateTime).HasColumnName("CreateTime");
			this.Property(t => t.Content).HasColumnName("Content");
			this.Property(t => t.UpdateBy).HasColumnName("UpdateBy");
			this.Property(t => t.UpdateStation).HasColumnName("UpdateStation");
			this.Property(t => t.UpdateTime).HasColumnName("UpdateTime");
			this.Property(t => t.IsDelete).HasColumnName("IsDelete");
		}
	}
}

